oj_server: oj_server.cc
	g++ -o $@ $^ -std=c++11 -I./include -L./lib/ctemplate -L./lib/jsoncpp -L./lib/mariadb -lctemplate -lpthread -ljsoncpp -lmariadb

debug: oj_server_debug
oj_server_debug: oj_server.cc
	g++ -o $@ $^ -std=c++11 -I./include -L./lib/ctemplate -L./lib/jsoncpp -L./lib/mariadb -lctemplate -lpthread -ljsoncpp -g -lmariadb

clean:
	rm -f oj_server
	rm -f oj_server_debug
.PHONY: clean

